// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './routers'
import reset from './plugins/reset'

Vue.config.productionTip = false //来关闭生产模式下给出的提示

// 路由跳转
Vue.prototype.$goRoute = function(index) {
    this.$router.push(index)
}

new Vue({
    el: '#index-app',
    router,
    render: h => h(App)
});